var obj = {
    a: 1,
    b: 2,
    c: {d: 2}
}
var obj2 = obj.c
delete obj.a
delete obj.c

// var a = 1
// b = 3
// console.log(delete b)
console.log(obj)  